Much more elegant solution for functions that are not sending a timestamp, thanks...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 28 Mar 2007 19:54:45 +0000 (19:54 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 28 Mar 2007 19:54:45 +0000 (19:54 +0000)
languages/Language.php

index a23c304..4f21791 100644 (file)
@@ -753,6 +753,9 @@ class Language {
        */
        function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) {
                $this->load();
+
+               $ts = wfTimestamp( TS_MW, $ts );
+
                if ( $adj ) { 
                        $ts = $this->userAdjust( $ts, $timecorrection ); 
                }